package events
{
    import flash.events.Event;

    public class SillajConnectionEvent extends Event
    {
        
        public static const LOGIN_FAIL:String = "login_fail" ; //the user is not connected
        
        public static const LOGIN_SUCCESS:String = "loggin_success" ; // the user is connected        
        
        
        /*paramètres de connexion à sillaj*/
        public var sillajUser:String ;
        public var sillajPassword:String ;
        public var sillajURL:String ;
        
        public var sillajErrorMessage:String ; //error message
                
        
        public function SillajConnectionEvent(type:String, user:String, password:String, URL:String, sillajErrorMessage:String = '', bubbles:Boolean=false, cancelable:Boolean=false)
        {
            sillajUser         = user ;
            sillajPassword = password ;
            sillajURL          = URL ;
            
            this.sillajErrorMessage = sillajErrorMessage ;
            
            super(type, bubbles, cancelable);
        }
        
    }
}